package cn.yoline.xylink.widget;

import android.app.Dialog;
import android.content.Context;
import android.view.WindowManager;
import android.widget.TextView;

import cn.yoline.xylink.R;


/**
 * @file FileName
 * Ranger
 * Created by Tangkhun on 2018/12/12.
 * <p>Copyright 2018 JxGIS.</p>
 * Description：
 */
public class ProgressDialog extends Dialog {
    private String content;

    public ProgressDialog(Context context, String content) {
        super(context, R.style.AlertDialogStyle);
        this.content = content;
        initView();
    }


    private void initView(){
        setContentView(R.layout.dialog_progress);
        ((TextView)findViewById(R.id.tv_content)).setText(content);
//        setCanceledOnTouchOutside(true);
//        WindowManager.LayoutParams attributes = getWindow().getAttributes();
//        attributes.alpha=0.8f;
//        getWindow().setAttributes(attributes);
//        setCancelable(false);
    }
}
